package com.yict.common.bean.web;

import java.util.Collection;
import java.util.LinkedList;
import java.util.List;

public class JqGridDataSource {
	private int records = 0;

	private int page = 0;

	private int total = 0;

	private List<Object> rows = new LinkedList<Object>();

	public void addRow(Object object) {
		rows.add(object);
	}

	public void addRows(Collection<?> collection) {
		rows.addAll(collection);
	}

	public int getRecords() {
		return records;
	}

	public void setRecords(int records) {
		this.records = records;
	}

	public int getPage() {
		return page;
	}

	public void setPage(int page) {
		this.page = page;
	}

	public int getTotal() {
		return total;
	}

	public void setTotal(int total) {
		this.total = total;
	}

	public List<Object> getRows() {
		return rows;
	}

	public void setRows(List<Object> rows) {
		this.rows = rows;
	}
}
